﻿using System;
using System.ComponentModel.DataAnnotations;

namespace SimpleScrum.Core.Entities
{
    public class BackLog
    {
        [Display(Name = "Backlog ID")]
        public virtual Guid Id { get; protected set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Backlog Title")]
        [StringLength(50, ErrorMessage = "The Backlog Title Name must be at most 50 characters long")]
        public virtual string Title { get; set; }

        [Required]
        [Display(Name = "Sprint")]
        public virtual Sprint Sprint { get; set; }

        [Required]
        [Display(Name = "Userstory")]
        public virtual UserStory UserStory { get; set; }

        [Required]
        [Display(Name = "Project")]
        public virtual Project Project { get; set; }

        [Display(Name = "Tags")]
        public virtual Guid Tags { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        [Display(Name = "Assign Date")]
        public virtual DateTime AssignDate { get; set; }

        [Display(Name = "Status")]
        public virtual int Status { get; set; }
    }
}